package com.luoqiu.springCloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 调用CLOUD-PROVIDER-HYSTRIX-PAYMENT 采用PaymentFallbackService里面对应的方法进行服务降级
 */
@Service
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT", fallback = PaymentFallbackService.class)
public interface OrderService {


    @GetMapping(value = "/hys/ok")
    String ok();

    @GetMapping(value = "/hys/err")
    String err();
}
